<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/include/taglibs.jsp"%>
<style type="text/css">
.fixed_div{
	position:fixed;
	right:0px;
	top:250px;
	background-color:gray;
}
</style>
<script type="text/javascript">
function feed_fun(){
	var url=baseURL+'/mffeedback/getUrl.action?discussCode=${param.code}';
	 $.ajax({
			url:url,
			type : "POST",
			cache : false, 
			async : true,
		    dataType:'json',
		    success:function(feedbackUrl){
			   if(feedbackUrl==0){
				   alert("<s:i18n name='feedback'><s:text name='fb.fail.formisopen'></s:text></s:i18n>");
			   }else if(feedbackUrl==-1){
				   alert("<s:i18n name='share'><s:text name='share.fail'></s:text></s:i18n>");
			   }else{
				   window.open(feedbackUrl); 
			   }
		   },
		    error:function(){ 
		    	alert("<s:i18n name='share'><s:text name='share.nologin'></s:text></s:i18n>");
		    },
	 });
}
</script>
<div class="fixed_div">
<a href="javascript:void(0)" id="feed_id" onclick="javascript:feed_fun()">
<img src="${baseURL}/images/btn-feed.png" 
onMouseOver="this.src='${baseURL}/images/btn-feed1.png'" 
onMouseOut="this.src='${baseURL}/images/btn-feed.png'"/>
</a>
</div>